@charset "utf-8";
* {
	margin: 0;
	padding: 0;
}

.main {
	width: 100%;
	perspective: 1000px;
	margin-top: 200px;
}

.warp {
	position: relative;
	margin: 0 auto;
	width: 500px;
	height: 1000px;
	border: 1px solid red;
	transform-style: preserve-3d;
	animation: rotate 4s linear infinite;
}

@keyframes rotate {
	from {}
	to {
		transform: rotateY(360deg);
	}
}

.box {
	position: absolute;
	width: 500px;
	height: 200px;
	background: gray;
	border: 1px solid black;
}

.box:nth-of-type(1) {
	top: 0;
	transform: rotateX(-30deg);
}

.box:nth-of-type(2) {
	top: 175px;
	transform: rotateX(30deg);
}

.box:nth-of-type(3) {
	top: 350px;
	transform: rotateX(-30deg);
}

.box:nth-of-type(4) {
	top: 525px;
	transform: rotateX(30deg);
}